<{foreach from=$data item=item}>

<li>
    <a href="
    <{if $item.jumpMode eq 1}>
        <{$item.jumpURL}>
    <{else}>
        <{u('Events/info?id='|cat:$item.id)}>
    <{/if}>
    ">
        <div class="img-box">
            <img src="<{$preUploadcUrl}><{$item.imgList}>" alt="" />
            <div class="mark">
                <p>人气<em><{$item.hot}></em></p>
                <p>报名<em><{$item.applyCount}></em></p>
            </div>
        </div>
        <div class="title"><{$item.title}></div>

        <div class="section">
            <div class="detail">
                <p class="line-1"><{$item.showListTime}></p>
                <p class="line-2"><{$item.location}></p>
            </div>

            <{if $item.joinStatus}>
                <{if $item.joinStatus eq 6}><{* 已取消报名的 *}>
                    <span class="state state-1">去报名</span>
                <{else if $item.joinStatus eq 5}>
                    <span class="state state-2">已报名</span>
                <{else}>
                    <span class="state state-2"><{$item.joinStatusHtml}></span>
                <{/if}>
            <{else}>
                <{if $item.applyEndTime>$smarty.now}>
                    <{if $item.model == 'first' && $item.applyCount>=$item.places}>
                        <span class="state state-2">已结束</span>
                    <{else}>
                        <{if $item.applyStartTime>$smarty.now }>
                            <span class="state state-2">即将开始</span>
                        <{else}>
                            <span class="state state-1">去报名</span>
                        <{/if}>
                    <{/if}>
                <{else}>
                    <span class="state state-2">已结束</span>
                <{/if}>
            <{/if}>

        </div>
    </a>
</li>
<{/foreach}>
